<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>旋转数组算法解析 | 数据结构与算法</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', 'Noto Serif SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Hiragino Sans GB", Simsun, sans-serif;
            background-color: #f8fafc;
            color: #1e293b;
            line-height: 1.6;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #a855f7 100%);
        }
        .code-block {
            font-family: 'Courier New', Courier, monospace;
            background-color: #1e293b;
            color: #e2e8f0;
            border-radius: 0.5rem;
            overflow-x: auto;
        }
        .algorithm-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .highlight {
            position: relative;
        }
        .highlight::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: -2px;
            width: 100%;
            height: 8px;
            background-color: rgba(79, 70, 229, 0.3);
            z-index: -1;
            transition: all 0.3s ease;
        }
        .highlight:hover::after {
            height: 14px;
            background-color: rgba(79, 70, 229, 0.5);
        }
    </style>
</head>
<body class="antialiased">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 px-4 md:px-8">
        <div class="max-w-6xl mx-auto">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold mb-4 leading-tight">旋转数组<span class="text-yellow-300">.</span></h1>
                    <p class="text-xl md:text-2xl font-light mb-8 opacity-90">优雅解决数组旋转问题的艺术</p>
                    <div class="flex items-center space-x-4">
                        <div class="bg-white bg-opacity-20 px-4 py-2 rounded-full flex items-center">
                            <i class="fas fa-clock mr-2"></i>
                            <span>时间复杂度: O(n)</span>
                        </div>
                        <div class="bg-white bg-opacity-20 px-4 py-2 rounded-full flex items-center">
                            <i class="fas fa-memory mr-2"></i>
                            <span>空间复杂度: O(1)</span>
                        </div>
                    </div>
                </div>
                <div class="md:w-1/2">
                    <div class="bg-white bg-opacity-10 p-6 rounded-xl backdrop-blur-sm border border-white border-opacity-20">
                        <div class="flex justify-center mb-4">
                            <div class="w-16 h-16 rounded-full bg-white bg-opacity-20 flex items-center justify-center">
                                <i class="fas fa-rotate text-2xl text-yellow-300"></i>
                            </div>
                        </div>
                        <h3 class="text-xl font-bold mb-3 text-center">示例演示</h3>
                        <div class="flex justify-center space-x-4 mb-4">
                            <div>
                                <p class="text-sm opacity-80 mb-1">原始数组</p>
                                <div class="flex">
                                    <div class="w-10 h-10 bg-white bg-opacity-20 rounded flex items-center justify-center mx-1">1</div>
                                    <div class="w-10 h-10 bg-white bg-opacity-20 rounded flex items-center justify-center mx-1">2</div>
                                    <div class="w-10 h-10 bg-white bg-opacity-20 rounded flex items-center justify-center mx-1">3</div>
                                    <div class="w-10 h-10 bg-white bg-opacity-20 rounded flex items-center justify-center mx-1">4</div>
                                    <div class="w-10 h-10 bg